#include <iostream>
#include <memory>
using namespace std;
/**
 * unique_ptr:
 *
 */

class A {
private:
    int num;

public:
    A(int n) : num(n) {}
    int get() { return num; }
    void set(int n) { num = n; }
    ~A() {}
};


int main() {
    int *p = new int(10);
    unique_ptr<int> up(p);
    up.reset();
    if(up == nullptr) cout << 1 << endl;
    cout << *p << endl;
    return 0;
}